package com.feel.easycloud.common.constant;

public class CommonConstant {

    public static String PAGESIZE = "size";

    public static String LIMIT = "page";

    public enum LOGINMODEL{
        PHONEPWD("1","手机号密码登录"),
        ACCOUNTPWD("2","账号密码登录"),
        EMAILPWD("3","邮箱密码登录")
        ;

        public static LOGINMODEL formCode(String code){
            for(LOGINMODEL a: LOGINMODEL.values()){
                if(a.code.equals(code)){
                    return a;
                }
            }
            return null;
        }

        LOGINMODEL(String code,String desc){
            this.code = code;
            this.desc = desc;
        }

        private String code;
        private String desc;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

}
